//
//  SLDemoViewController.swift
//  SLBlog
//
//  Created by 盼 on 2017/11/30.
//  Copyright © 2017年 pan. All rights reserved.
//

import UIKit

class SLDemoViewController: SLBaseViewController {

    @objc func pushToNextVC() {
        
        let demoVC = SLDemoViewController()
        navigationController?.pushViewController(demoVC, animated: true)
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        setupUI()
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }

}

extension SLDemoViewController
{
    override func setupUI() {
        super.setupUI()
        
        navigationItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(pushToNextVC))
    }
}
